﻿using System;
using System.Collections.Generic;

using System.Text;

namespace ExcleToWord.DataModel
{
    /// <summary>
    /// 记录的实体类（每条记录对应一个Word名称）
    /// </summary>
    public class RecordEntity
    {
        private List<KeyValuePair<string, string>> _recordList = null; //一行的信息
        public List<KeyValuePair<string, string>> RecordList
        {
            get { return _recordList; }
            set { _recordList = value; }
        }


        // public List<Dictionary<string, string>> _sheetEntity = null; //一行的信息


        public void InitialKeys(List<string> titleColumnNameList)
        {
            _recordList = new List<KeyValuePair<string, string>>();
            foreach (var strName in titleColumnNameList)
            {
                _recordList.Add(new KeyValuePair<string, string>(strName, string.Empty));
            }
        }

    }
}
